package com.itheima.hotel.data;

import java.time.LocalDateTime;
import java.util.*;

/*
酒店数据
 */
public class HotelData {

    private List<RoomsData> roomsDataList = new ArrayList<>();

    public HotelData() {
        for (int i = 1; i <= 2; i++) {          //楼层
            for (int j = 1; j <= 5; j++) {     //房号
                RoomsData roomsData = new RoomsData();
                roomsData.setRoomNumber(i + "0" + j);
                roomsData.setReserved(false);
                roomsData.setRoomType(i == 1 ? "单人床" : "双人床");
                roomsDataList.add(roomsData);
            }
        }
    }

    public HotelData(List<RoomsData> roomsDataList) {
        this.roomsDataList = roomsDataList;
    }

    public List<RoomsData> getRoomsDataList() {
        return roomsDataList;
    }

    public void setRoomsDataList(List<RoomsData> roomsDataList) {
        this.roomsDataList = roomsDataList;
    }



    public void setMap(RoomsData roomsData, LocalDateTime time) {
    }
}
